<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="myname" data-my-name="hello"></div>
		
		<script>
			window.onload=function(){
				var myName= document.getElementById("myname").dataset["myName"];
				console.log(myName)
			}
			
		</script>
	</body>
</html>